#ifndef MESH_FACTORY_BUILDER
#define MESH_FACTORY_BUILDER

#include "MeshFactory.h"
#include "LoaderOFF.h"
#include "LoaderOBJ.h"
#include "LoaderMNT.h"

namespace glow{
	
class SHARED MeshFactoryBuilder
{
public :
	/**
	 * Create the MeshFactoryBuilder
	 * Initialize the MeshFactory::TheMap by adding link between file extension and file's Loader
	 **/  
	MeshFactoryBuilder()
	{
		MeshFactory::registerMeshLoader(".off", new LoaderOFF());
		MeshFactory::registerMeshLoader(".mnt", new LoaderMNT());
		MeshFactory::registerMeshLoader(".obj", new LoaderOBJ());
	}		
};

static MeshFactoryBuilder TheMeshFactoryBuilder;

}

#endif
